<template>
	<u-cell-group>
		<view v-for="p in parking">
			<u-cell :title="'车位ID：'+p.parkingId"></u-cell>
			<u-cell :title="'车位号：'+p.parkingNum"></u-cell>
			<u-cell :title="'车位租金：'+p.parkingPrice"></u-cell>
			<u-cell :title="'车位状态：'+p.parkingStatus"></u-cell>
			<u-cell :title="'租出时间：'+p.rentTime"></u-cell>
			<u-divider></u-divider>
		</view>
	</u-cell-group>
</template>

<script>
	export default {
		data() {
			return {
				parking: []
			}
		},
		methods: {
	
		},
		onLoad() {
			let p = this;
			// console.log("1111")
			uni.request({
				url: "/parking/all",
				success(res) {
					if (res.data.code == 200) {
						p.parking = res.data.data
						// console.log(res)
					}
				}
			})
		}
	}
</script>

<style>
</style>